package org.example.bighomework.Course;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
//课程表和Course类对应
@Data
@Entity
@Table(name="course")
public class Course {
    @Id
    private String id;
    @Column(name="name")
    private String name;
    @Column(name="credit")
    private Double credit;
}
